@layout("/common/_container.html",{js:["/assets/modular/system/role/role.js"]}){

<div class="layui-body-header">
    <span style="line-height: 36px;">角色管理</span>
    <div style="float:right;">
        @if(shiro.hasPermission("/role/add")){
        <button id="btnAdd" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/add.svg"/>&nbsp;添 加
        </button>
        @}
        <button id="btnExp" style="font-size: 14px;" class="layui-btn layui-btn-lg layui-btn-radius layui-btn-primary">
            <img style="width: 16px;height: 16px;margin-bottom: 4px;" src="${ctxPath}/assets/common/images/download.svg"/>&nbsp;导 出
        </button>
    </div>
</div>

<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                <input id="roleName" class="layui-input" type="text" placeholder="角色名称"/>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn " style="height: 36px;line-height: 36px"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="reset"  class="layui-btn layui-btn-primary" style="height: 36px;line-height: 36px">
                                    重置
                                </button>
                            </div>

                        </div>
                    </div>
                    <table class="layui-table" id="roleTable" lay-filter="roleTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>

<script type="text/html" id="tableBar">
    {{#  if(d.roleId !=1){}}
    {{#  if(d.roleId !=2){}}
    {{#  if(d.roleId !=3){}}
    {{#  if(d.roleId !=4){}}
    {{#  if(d.roleId !=5){}}
    {{#  if(d.roleId !=6){}}
    {{#  if(d.roleId !=7){}}
    @if(shiro.hasPermission("/role/edit")){

    <a class=" v" lay-event="edit" >修改 </a><div class="vi"></div>
    @}
    @if(shiro.hasPermission("/role/remove")){

    <a class=" v" lay-event="delete" >删除 </a>
        @if(shiro.hasPermission("/role/setAuthority")){
        <div class="vi"></div>
        @}
    @}
    {{#  } }}
    {{#  } }}
    {{#  } }}
    {{#  } }}
    {{#  } }}
    {{#  } }}
    {{#  } }}
    @if(shiro.hasPermission("/role/setAuthority")){

    <a class=" v" lay-event="roleAssign" >权限配置 </a>
    @}
</script>
@}